<template>
  <div>
    <button @click="handleClick">{{props.name}}></button>
  </div>
</template>
<script>
export default {
  props:{
    name:String,
  },
  setup(props, {emit}){
    const handleClick = ()=>{
      console.log("props", props);
      emit("childClick", "message====")
    }
  }
}
</script>